<?php echo form_open(base_url().'journal/admin/teachers'); ?>
	<table class="groups">
	    <tr>
	        <th id="left"><div><?=lang('name_teacher')?></div></th>
	        <th><div><?=lang('admin_phone')?></div></th>
	        <th id="right"><div><?=lang('admin_button_select')?></div></th>
	    </tr>
		<?foreach ($teachers as $result){?>
		<tr>
			<td id='left'><div id='groups-div'><a href="<?=base_url().'journal/admin/teachers/edit/'.$result['id']?>" title="<?=lang('admin_button_edit')?>"><?=$result['name']?></a></div></td>
			<td><div id='groups-div'><?if($result['phone']) echo $result['phone']; else echo '-';?></div></td>
			<td id='right'><div id='groups-div'><input name='teachers[]' type='checkbox' value="<?=$result['id']?>"></div></td>
		</tr>
		<?}?>
	</table>
<p style="width:80%;text-align:right;margin-top:20px;"><a href="<?=base_url().'journal/admin/teachers/add'?>"><button type="button"><?=lang('admin_button_create')?></button></a> <input name="delete_teacher_submit" type="submit" value="<?=lang('admin_button_delete')?>"></p>
</form>